<?php /* Smarty version 2.6.26, created on 2014-11-13 10:01:11
         compiled from page/negara.html */ ?>
<p>List data negara pada aplikasi</p>

<form class="form-inline" method="get" action="negara.php">
	Go to page
  	<select name="p" class="input-mini">  	  	    	  	
  		<?php $_from = $this->_tpl_vars['paging']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['p']):
?>
  		<option value="<?php echo $this->_tpl_vars['p']; ?>
"><?php echo $this->_tpl_vars['p']; ?>
</option>  	 	
  		<?php endforeach; endif; unset($_from); ?>
  	</select>	
  	<button type="submit" class="btn">Go</button>
</form>

<table class="table table-bordered table-striped" style="width: 50%">
	<tr>
		<th>Kode</th>
		<th>Nationality</th>
		<th></th>	
	</tr>	
	<?php $_from = $this->_tpl_vars['negara']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['s']):
?>
	<tr>
		<td><?php echo $this->_tpl_vars['s']['code']; ?>
</td>
		<td><?php echo $this->_tpl_vars['s']['nationality']; ?>
</td>
		<td>
			<a href="#" class="btn btn-small btn-success">Edit</a>	
		</td>
	</tr>	
	<?php endforeach; endif; unset($_from); ?>
</table>	